package com.autonavi.yunda.yunji.job.executor;

import com.autonavi.yunda.yunji.common.utils.SpringUtil;
import com.xxl.job.core.handler.TaskJobHandlerManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * @author xuxueli 2018-10-28 00:38:13
 */
@ComponentScan(basePackages = {
        "com.autonavi.yunda.yunji.job.executor",
        "com.autonavi.yunda.yunji.common.web",
        "com.autonavi.yunda.yunji.core",
})
@Import({SpringUtil.class, TaskJobHandlerManager.class})
@MapperScan("com.autonavi.yunda.yunji.core.model.mappers")
@PropertySource(value = "classpath:mybatis/mybatis-configuration.properties")
@SpringBootApplication
public class XxlJobExecutorApplication {

    public static void main(String[] args) {
        SpringApplication.run(XxlJobExecutorApplication.class, args);
    }

}